package com.cn.jiyun.controller;

import com.cn.jiyun.entity.pojo.CarouselImages;
import com.cn.jiyun.service.CarouselImagesService;
import com.jiyun.result.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


import java.util.List;

@RequestMapping("carouselImages")
@RestController
@Slf4j
public class CarouselImagesController {

    @Autowired
    private CarouselImagesService carouselImagesService;

    @GetMapping("lunboUrl")
    public Result<List<CarouselImages>> lunboUrl(){
        return carouselImagesService.lunboUrl();
    }
}
